package com.mybatis;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by
 *
 * @author touni
 * @date 2019/4/11
 * @time 16:47
 */
@RestController
public class DemoController {

    @Autowired
    private IDemoService iDemoService;


    @GetMapping("/index")
    public Object demo(){
        return iDemoService.queryAll();


    }


}
